//
//  HomeSectionHeaderView.m
//  mafengwo
//
//  Created by Mac on 16/3/10.
//  Copyright © 2016年 Mac. All rights reserved.
//

#import "HomeSectionHeaderView.h"

@implementation HomeSectionHeaderView
{
    IBOutlet UITextField *_textField;
}
-(void)awakeFromNib
{
    _textField.layer.borderColor = [UIColor orangeColor].CGColor;

    _textField.layer.borderWidth = 1;
    _textField.layer.cornerRadius = 10;

    _textField.delegate = self;

    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(textFieldShouldReturn:) name:@"touchHomeTableView" object:nil];
}

-(BOOL)textFieldShouldReturn:(UITextField *)textField{

    //2.让键盘收起

    [_textField resignFirstResponder];

    return YES;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
